fix(deps): update mikro-orm monorepo to v6 (major) #1768
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.9.5
->^6.0.0
^5.9.5
->^6.0.0
^5.9.5
->^6.0.0
^5.9.5
->^6.0.0
^5.9.5
->^6.0.0
Release Notes
mikro-orm/mikro-orm (@mikro-orm/better-sqlite)
v6.1.0
Compare Source
Bug Fixes
CacheAdapter.get
to returnPromise<undefined>
(#5200) (98ce1e5), closes #5199AutoPath
in TS 5.4 (#5197) (8bbc252)wrap(e, true).__em
correctly typed toEntityManager
(35d607c)upsertMany
options when batching (d6d1381), closes #5209convertToJSValueSQL
on returning statement of update queries (2e1d6c8), closes #5176Features
onCreate
andonUpdate
callback (a964aeb), closes #5201ArrayType
(#5204) (42cc9cc), closes #5188loggerContext
parameter toem.execute
(b6d46df)6.0.7 (2024-01-30)
Bug Fixes
PrimaryKeyProp
as optional properties forem.create()
(69522f2), closes #5187undefined
tonull
types inEntityDTO
(d661c68), closes #5186QueryBuilder
(908864c), closes #5185Features
interval
type (659a613), closes #51816.0.6 (2024-01-29)
Bug Fixes
em.insertMany
returns array of PKs for a single item too (#5180) (0d58aaf), closes #5179EntityDTO
(dc4fc6f)EntityDTO
type (1691a79)assign
on object properties won't ignore changes (a360300), closes #5158qb.getSingleResult()
(0e56fe1), closes #51826.0.5 (2024-01-18)
Bug Fixes
populate: ['*']
fromfields: ['*']
(f658376), closes #5139em.upsert/Many
(3d8c242), closes #5136Ref
types with FK as PK (c8858d2), closes #51446.0.4 (2024-01-15)
Bug Fixes
Features
raw
fragment in multiple keys (fc967e2), closes #51296.0.3 (2024-01-13)
Bug Fixes
orderBy
andpopulateOrderBy
(7bf986c), closes #5110Features
Loaded
when partially loaded (75d035d), closes #5123AutoPath
andUnboxArray
types (000c50c), closes #5124number
orstring
based on the runtime type (312f293), closes #5120forceEntityConstructor
(b293789), closes #51186.0.2 (2024-01-09)
Bug Fixes
em.remove
with not managed entity (88e055e), closes #5103logging
options inem.count
(3b94bf9), closes #5085logging
options inem.count
(481d02e), closes #5085$some/$none/$every
on nested relations (2b3bd4d), closes #5099Opt
andHidden
types when used in intersection (2bd612e)Features
wrap(entity).isManaged()
(5931649), closes #50826.0.1 (2024-01-08)
Note: Version bump only for package @mikro-orm/root
6.0.0 (2024-01-08)
Bug Fixes
EntitySchema
(d4d5b5e).env
files automatically (09e60f7)useDefineForClassFields
(#4730) (83f24aa), closes #4216ensureDatabase
oninit
(827b1f1)EntitySchema
typing forrepository
option (37ee42e), closes #5006em.create
strictly typed for relations too (#4752) (3535cc0), closes #4748Loaded
type more flexible (c95e3b6), closes #3277Reference.set()
as private (#5017) (5aebf0b), closes #5003Date
properties (#4391) (3a80369), closes #4362 #4360 #1476@Index
and@Unique
decorators on embeddables (#4736) (c3d7717)schema
option in first level cache (1833455)em.insert/Many
(7eae031), closes #4424em.refresh()
(0bf5363)em.refresh()
(55815f4)Collection
initialization to useem.populate()
(#4571) (7495142), closes #4464join on
conditions forpopulateWhere
(#4025) (a03e57c), closes #3871em.getKnex()
(46957ba)id
to_id
for embeddables and entities without serialized PK (0cee82d), closes #4960$and
with a single item (a737b20)Code Refactoring
JavaScriptMetadataProvider
(4e337cb)Reference.load(prop: keyof T)
signature (#5015) (32b48f7)Features
@EnsureRequestContext
decorator + rename@UseRequestContext
(5e088ae), closes #4009Collection.load()
method (8aa1ad1)EagerProps
symbol to respect eager props on type level (dfcf1f8)em.findAll()
with optionalwhere
option (#4946) (23b0551), closes #3982FindOptions.exclude
(#5024) (fe239cf)GeneratedCacheAdapter
for production usage (#4167) (bd478af), closes #4164Hidden
type as an alternative toHiddenProps
symbol (#5009) (c047bb1)HiddenProps
symbol as type-level companion forhidden: true
(7984769), closes #4093MikroORM.initSync()
helper (#4166) (8b1a1fa), closes #4164Opt
type as an alternative toOptionalProps
symbol (#4753) (8853904)orm.checkConnection()
helper (#4961) (b868f02), closes #4959ScalarRef
andEntityRef
types to allow explicit control (1ef7856), closes #4907sql.now()
,sql.lower()
andsql.upper()
functions (#5044) (016fe63)sql.ref()
helper (#4402) (b695811)em.findByCursor()
(#3975) (1e6825f)LoggerContext
with labeling support (#4233) (b985646), closes #4230onMetadata
andafterDiscovered
(#4799) (5f6c4f8)em.persist()
(1b09d26), closes #4905serialization.forceObject
option (731087d), closes #4881Type.compareValues
method to allow custom comparators (732307a), closes #4870CountOptions
inCollection.loadCount()
(25d1851)EntitySchema
(10cfd28)subscribers
array (7c8f776), closes #4231Reference.load()
andCollection.load()
(#5025) (06012f7), closes #4975serialization.forceObject: true
on type level (#5045) (88eb3e5)colors
ORM config option (1bcaf09), closes #5037EntityManager
(#5064) (6c363e7)populate: ['$infer']
(#4939) (080fdbb), closes #1309--config
(#3924) (2c929e0)PopulateHint
enum (populateWhere
) (2bd21eb)populate: ['*']
(#4927) (7780f34), closes #4920Ref
wrapper on scalar properties (#4358) (f9c30f1)loadStrategy
andflushMode
(f4e4e3b)em.insert/Many
strictly typed (require all properties) (01935e6)BigInt
support (#4719) (31a905c)mappedBy
option for 1:m properties (716aa76)raw()
helper (#4197) (9c1b205)ignoreFields
on type level inwrap().toObject()
(15de7a0), closes #4198schema
parameter inclientUrl
(#4998) (9176ee0), closes #4997Loaded
type fromRef.load()
(bc3ffa9), closes #3755em.populate()
when called on single entity (4c4ec23)raw()
helper (#4094) (1cd0d1e), closes #3657OptionalProps
and other symbols forEntitySchema
(00f0a34)order by nulls first/last
(#5021) (df75b24), closes #5004schema.ensureDatabase()
method to create/clear (6a12fe1)populateWhere: 'all'
(#4957) (e5dbc24)$some
,$none
and$every
subquery operators (#4917) (50d2265), closes #2916Performance Improvements
BREAKING CHANGES
Please see the upgrading guide.
5.9.7 (2023-12-30)
Bug Fixes
em.canPopulate()
when using STI (b8fcf45), closes #50435.9.6 (2023-12-21)
Bug Fixes
assign
on collections of unloaded entities (b60e4ee)5.9.5 (2023-12-15)
Bug Fixes
populate: true
andrefresh: true
(#5001) (9f63378)em.upsert
(a7e9a82), closes #4945@>
) with object arrays (6a5a1ef), closes #49735.9.4 (2023-11-17)
Bug Fixes
mikro-orm-esm
on windows (c491af9)em.find
for inlined embedded properties (759b7b8), closes #4904em.upsertMany()
(85c38d4), closes #49235.9.3 (2023-11-06)
Bug Fixes
DriverException
fromem.upsertMany()
(1ebfbdd), closes #48975.9.2 (2023-11-02)
Bug Fixes
em.count
on virtual entity (03a7b86)ignoreUndefinedInQuery
(cef26c5), closes #48915.9.1 (2023-10-31)
Bug Fixes
5.9.0 (2023-10-24)
Bug Fixes
convertToJSValueSQL
on composite FKs too (41425cb), closes #4843columnType
for non-inferrable types (e.g. unions withnull
) (6bc116a), closes #4833qb.groupBy()
(e27e4b9), closes #2929preferReadReplicas
inQueryBuilder
(22e140e), closes #4847Features
undefined
values inem.find
queries (#4875) (e163bfb), closes #4873EntityManager
schema (#4849) (5bc12a9)5.8.10 (2023-10-18)
Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.